	const dayNums = (year,monthnum)=>{
		switch (monthnum) {
			case "1":
			case "3":
			case "5":
			case "7":
			case "8":
			case "10":
			case "12":
				var daynum = 31;
				break;
			case "4":
			case "6":
			case "9":
			case "11":
				var daynum = 30;
				break;
			case "2":
				if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
					var daynum = 29;
				} else {
					var daynum = 28;
				}
				break;
		}
		return daynum;
	};
	
	const getDate = (date, AddDayCount = 0)=> {
		if (!date) {
			date = new Date()
		}
		if (typeof date !== 'object') {
			date = date.replace(/-/g, '/')
		}
		const dd = new Date(date)
	
		dd.setDate(dd.getDate() + AddDayCount) // 获取AddDayCount天后的日期
	
		const y = dd.getFullYear()
		const m = dd.getMonth() + 1 < 10 ? '0' + (dd.getMonth() + 1) : dd.getMonth() + 1 // 获取当前月份的日期，不足10补0
		const d = dd.getDate() < 10 ? '0' + dd.getDate() : dd.getDate() // 获取当前几号，不足10补0
		return {
			fullDate: y + '-' + m + '-' + d,
			year: y,
			month: m,
			date: d,
			day: dd.getDay()
		}
	};
	
	export  {dayNums,getDate};